package com.yujistu.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.yujistu.R;

/**
 * Created by S3YOGA on 2015/11/10.
 */
public class ClassDearsActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fragment_league_venues_detail);

        initView();
    }

    private void initView() {


        findViewById(R.id.inducationLayout).setOnClickListener(mOnClickListener);
        findViewById(R.id.rll_student_evaluate_entrance).setOnClickListener(mOnClickListener);
        findViewById(R.id.payBtn).setOnClickListener(mOnClickListener);
    }

    private View.OnClickListener mOnClickListener = new View.OnClickListener(){

        @Override
        public void onClick(View v) {
             switch (v.getId()){


                 case R.id.inducationLayout:
                     inducaLayout();
                     break;
                 case R.id.rll_student_evaluate_entrance:
                     stuEnta();
                     break;
                 case R.id.payBtn:
                     patBtn();
                     break;
             }
        }
    };

    private void inducaLayout() {
        startActivity(new Intent(ClassDearsActivity.this, InducaActivity.class));
    }

    private void stuEnta() {
        startActivity(new Intent(ClassDearsActivity.this, StudEvalActivity.class));
    }

    private void patBtn() {
        startActivity(new Intent(ClassDearsActivity.this, AppointBtnActivity.class));
    }
}
